#include "CLock.h"

CLock::CLock()
{
    InitializeCriticalSection(&cs);
}

CLock::~CLock()
{
    DeleteCriticalSection(&cs);
}

void CLock::Lock()
{
    EnterCriticalSection(&cs);
}

void CLock::UnLock()
{
    LeaveCriticalSection(&cs);
}
